
import SwiftUI

struct Service: View {
    @Environment(\.presentationMode) var presentationMode
    
    var body: some View {
        VStack {
            Back(title: "Terms Of Service") {
                self.presentationMode.wrappedValue.dismiss()
            }
            GeometryReader { geometry in
                WebView(url: URL(string: "https://easy-pdf-converter.site/service.html")!)
                    .frame(height: geometry.size.height ) // 44是标题栏的高度
            }
        }
        .navigationViewStyle(StackNavigationViewStyle())
        .navigationBarHidden(true)
        .navigationBarBackButtonHidden(true)
    }
}

#Preview {
    Service()
}
